﻿
// TOOLBOX4View.cpp : implementation of the CTOOLBOX4View class
//

#include "stdafx.h"
#include "Page1.h"
// SHARED_HANDLERS can be defined in an ATL project implementing preview, thumbnail
// and search filter handlers and allows sharing of document code with that project.
#ifndef SHARED_HANDLERS
#include "TOOLBOX4.h"
#endif

#include "TOOLBOX4Doc.h"
#include "TOOLBOX4View.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif



// CTOOLBOX4View

IMPLEMENT_DYNCREATE(CTOOLBOX4View, CView)

BEGIN_MESSAGE_MAP(CTOOLBOX4View, CView)
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, &CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, &CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, &CTOOLBOX4View::OnFilePrintPreview)
	ON_WM_CONTEXTMENU()
//	ON_WM_RBUTTONUP()
	ON_WM_ERASEBKGND()
	ON_WM_CREATE()
	ON_MESSAGE(WM_MY_PAGECHANGE, &CTOOLBOX4View::OnMyPagechange)
	ON_WM_LBUTTONDOWN()
//	ON_WM_RBUTTONDOWN()
END_MESSAGE_MAP()

// CTOOLBOX4View construction/destruction

CTOOLBOX4View::CTOOLBOX4View():m_pPage1(NULL),m_pPage2(NULL),m_pPage3(NULL),m_pPage4(NULL),m_pPage5(NULL)
{
	// TODO: add construction code here
}

CTOOLBOX4View::~CTOOLBOX4View()
{
	if(m_pPage2 != NULL)
		delete m_pPage2;
	if(m_pPage3 != NULL)
		delete m_pPage3;
	if(m_pPage4 != NULL)
		delete m_pPage4;
	if(m_pPage1 != NULL)
		delete m_pPage1;
	if(m_pPage5 != NULL)
		delete m_pPage5;

	//AfxMessageBox(_T("CTOOLBOX4View 的析构调用"));
}

BOOL CTOOLBOX4View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	cs.style &=~WS_BORDER;// 去掉边框

	return CView::PreCreateWindow(cs);
}

CPoint CTOOLBOX4View::m_LBDpoint = NULL;

int CTOOLBOX4View::PAGE = 1;

// CTOOLBOX4View drawing

// 需要的初始化操作，显示page1时调用
void initialize(CTOOLBOX4View * pWnd)
{
	CPage2::m_bIsRet = FALSE;
	CPage3::m_bIsRet = FALSE;
	CPage5::m_bIsRet = FALSE;
	CModule::m_bStop = FALSE;
	CPage4::m_bIsWEBSel = FALSE;
	CPage4::m_bIsVirusSel = FALSE;
	CPage4::m_bIsHostLogSel = FALSE;
	CPage4::m_bIsFileOperationSel = FALSE;
	CPage4::m_bIsInterSel = FALSE;
	CPage4::m_bIsPortSel = FALSE;
	CPage4::m_bIsProcessSel = FALSE;
	CPage4::m_bIsServiceSel = FALSE;
	CPage4::m_bIsSoftWareSel = FALSE;
	CPage4::m_bIsAccountSel = FALSE;
	CPage4::m_bIsFileShareSel = FALSE;
	CPage4::m_bIsUSBSel = FALSE;
	//CPage4::m_bIsSel14 = FALSE;	// 综合分析, 始终勾选
	CPage4::m_bIsDisk1 = FALSE;
	CPage4::m_bIsDisk2 = FALSE;
	CPage4::m_bIsDisk3 = FALSE;
	CPage4::m_bIsDisk4 = FALSE;
	CPage4::m_bIsDisk5 = FALSE;
	CPage4::m_bIsDisk6 = FALSE;
	CPage4::m_bIsDisk7 = FALSE;
	CPage4::m_bIsDisk8 = FALSE;
	CPage4::m_bIsAllSel = FALSE;
	CPage4::m_bIsSelCol1 = FALSE;
	CPage4::m_bIsSelCol2 = FALSE;
	CPage4::m_bIsSelCol3 = FALSE;
	CPage4::m_bIsSelCol4 = FALSE;
	CPage4::m_bIsSelCol5 = FALSE;
	CPage4::m_bIsSelCol6 = FALSE;
	CPage4::m_bIsSelCol7 = FALSE;
	CPage4::m_strDisk = "";
	CPage4::m_strSelDisk = "";
	//m_stcWebFile->ShowWindow(SW_HIDE);
	CPage5::num = 0;

	CPage2::m_bIsWEBFinish = FALSE;
	CPage2::m_bIsHostLogFinish = FALSE;
	CPage2::m_bIsAnalyzeFinish = FALSE;
	CPage2::m_bIsFileOperationFinish = FALSE;
	CPage2::m_bIsInterFinish = FALSE;
	CPage2::m_bIsPortFinish = FALSE;
	CPage2::m_bIsProcessFinish = FALSE;
	CPage2::m_bIsServiceFinish = FALSE;
	CPage2:: m_bIsServiceFinish = FALSE;
	CPage2:: m_bIsSoftWareFinish = FALSE;
	CPage2::m_bIsWirelessFinish = FALSE;
	CPage2:: m_bIsAccountSecFinish = FALSE;
	CPage2:: m_bIsFileShareFinish= FALSE;
	CPage2:: m_bIsUSBFinish= FALSE;
	CPage2:: m_bIsARPFinish = FALSE;
	CPage2:: m_bIsUSNFinish = FALSE;
	CPage2:: m_bIsDNSFinish= FALSE;
	CPage2:: m_bIsLogPolicyFinish= FALSE;
	CPage2:: m_bIsPathInfoFinish= FALSE;
	CPage2:: m_bIsFileInfoFinish= FALSE;
	CPage2::m_bIsHostBaseInfoFinish=FALSE;
	CPage2::m_bIsStartUpInfoFinish=FALSE;
	CPage2::m_bIsTaskInfoFinish=FALSE;

	CPage5::m_bIsWEBFinish = FALSE;
	CPage5::m_bIsHostLogFinish = FALSE;
	CPage5::m_bIsAnalyzeFinish = FALSE;
	CPage5::m_bIsFileOperationFinish = FALSE;
	CPage5::m_bIsInterFinish = FALSE;
	CPage5::m_bIsPortFinish = FALSE;
	CPage5::m_bIsProcessFinish = FALSE;
	CPage5::m_bIsServiceFinish = FALSE;
	CPage5:: m_bIsServiceFinish = FALSE;
	CPage5:: m_bIsSoftWareFinish = FALSE;
	CPage5::m_bIsWirelessFinish = FALSE;
	CPage5:: m_bIsAccountSecFinish = FALSE;
	CPage5:: m_bIsFileShareFinish= FALSE;
	CPage5:: m_bIsUSBFinish= FALSE;
	CPage5:: m_bIsARPFinish = FALSE;
	CPage5:: m_bIsUSNFinish = FALSE;
	CPage5:: m_bIsDNSFinish= FALSE;
	CPage5:: m_bIsLogPolicyFinish= FALSE;
	CPage5::m_bIsHostBaseFinish=FALSE;
	CPage5::m_bIsStartUpFinish=FALSE;
	CPage5::m_bIsTaskListFinish=FALSE;
	CPage5::m_bIsFileInfoFinish=FALSE;
	CPage5::m_bIsShowWEBProgress = TRUE;
	CPage5::m_bIsShowNetWorkCardProgress = TRUE;
	CPage5::m_bIsShowClipboardProgress = TRUE;
	CPage5::m_bIsShowVirusProgress = TRUE;
	CPage5::m_bIsShowHostLogProgress = TRUE;
	CPage5::m_bIsShowAnalyzeProgress = TRUE;
	CPage5::m_bIsShowFileOperationProgress = TRUE;
	CPage5::m_bIsShowNetProgress = TRUE;
	CPage5::m_bIsShowPortProgress = TRUE;
	CPage5::m_bIsShowProcessProgress = TRUE;
	CPage5::m_bIsShowServiceProgress = TRUE;
	CPage5::m_bIsShowSoftWareProgress = TRUE;
	CPage5::m_bIsShowWirelessProgress = TRUE;
	CPage5::m_bIsShowAccountProgress = TRUE;
	CPage5::m_bIsShowFileShareProgress = TRUE;
	CPage5::m_bIsShowUSBProgress = TRUE;
	CPage5::m_bIsShowARPProgress = TRUE;
	CPage5::m_bIsShowDNSProgress = TRUE;
	CPage5::m_bIsShowUSNProgress = TRUE;
	CPage5::m_bIsShowLogPolicyProgress=TRUE;
	CPage5::m_bIsShowFileInfoProgress=TRUE;
	CPage5::m_bIsShowHostBaseProgress=TRUE;
	CPage5::m_bIsShowStartUpProgress=TRUE;
	CPage5::m_bIsShowHardwareProgress = TRUE;
	CPage5::m_bIsShowTaskListProgress=TRUE;
	CPage3::m_bIsWEBFinish = FALSE;
	CPage3::m_bIsHostLogFinish = FALSE;
	CPage3::m_bIsAnalyzeFinish = FALSE;
	CPage3::m_bIsFileOperationFinish = FALSE;
	CPage3::m_bIsInterFinish = FALSE;
	CPage3::m_bIsPortFinish = FALSE;
	CPage3::m_bIsProcessFinish = FALSE;
	CPage3::m_bIsServiceFinish = FALSE;
	CPage3::m_bIsSoftWareFinish = FALSE;
	CPage3::m_bIsWirelessFinish = FALSE;
	CPage3::m_bIsAccountSecFinish = FALSE;
	CPage3::m_bIsFileShareFinish= FALSE;
	CPage3::m_bIsUSBFinish= FALSE;
	CPage3::m_bIsARPFinish = FALSE;
	CPage3::m_bIsUSNFinish = FALSE;
	CPage3::m_bIsDNSFinish= FALSE;
	CPage3::m_bIsLogPolicyFinish= FALSE;
	CPage3::m_bIsPathInfoFinish= FALSE;
	CPage3::m_bIsFileInfoFinish= FALSE;

	CPage3::m_bIsHostBaseInfoFinish=FALSE;
	CPage3::m_bIsStartUpInfoFinish=FALSE;
	CPage3::m_bIsTaskInfoFinish=FALSE;

	//CPage2::m_pPageShare->m_pgsWebFile->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsWebFile->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsNetWorkCard->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsMemory->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsHardware->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsWireless->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsClipboard->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsHostLog->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsAnalyze->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsFileTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsNetTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsPort->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsProcess->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsService->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsSoftWare->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsAccountSec->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsFileShare->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsUSBTrace->SetPos(0);
//2020.12.28
	pWnd->m_pPage2->m_pPageShare->m_pgsUSNTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsARPTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsDNSTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsLogPolicyTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsPathInfoTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsFileInfoTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsHostBaseInfoTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsStartUpInfoTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsTaskInfoTrace->SetPos(0);
	pWnd->m_pPage2->m_pPageShare->m_pgsDBLogTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsWebFile->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsHostLog->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsAnalyze->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsFileTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsNetTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsPort->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsProcess->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsService->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsSoftWare->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsAccountSec->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsFileShare->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsUSBTrace->SetPos(0);
	//2020.12.28
	pWnd->m_pPage3->m_pShare->m_pgsUSNTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsARPTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsDNSTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsLogPolicyTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsPathInfoTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsHostBaseInfoTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsStartUpInfoTrace->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsTaskInfoTrace->SetPos(0);

	pWnd->m_pPage3->m_pShare->m_pgsNetWorkCard->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsMemory->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsClipboard->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsHardware->SetPos(0);
	pWnd->m_pPage3->m_pShare->m_pgsWireless->SetPos(0);

	pWnd->m_pPage5->m_pShare->m_pgsWebFile->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsHostLog->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsAnalyze->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsFileTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsNetTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsPort->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsProcess->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsService->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsSoftWare->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsAccountSec->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsFileShare->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsUSBTrace->SetPos(0);
	//2020.12.28
	pWnd->m_pPage5->m_pShare->m_pgsUSNTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsARPTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsDNSTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsLogPolicyTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsPathInfoTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsFileInfoTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsHostBaseInfoTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsStartUpInfoTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsTaskInfoTrace->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsNetWorkCard->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsMemory->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsHardware->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsWireless->SetPos(0);
	pWnd->m_pPage5->m_pShare->m_pgsClipboard->SetPos(0);

	pWnd->m_pPage5->m_pShare->m_pgsWebFile->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsHostLog->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsAnalyze->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsFileTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsNetTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsPort->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsProcess->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsService->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsSoftWare->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsAccountSec->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsFileShare->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsUSBTrace->ShowWindow(SW_HIDE);

	//2020.12.28
	pWnd->m_pPage5->m_pShare->m_pgsUSNTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsARPTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsDNSTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsPathInfoTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsFileInfoTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsHostBaseInfoTrace->ShowWindow(SW_HIDE);

	pWnd->m_pPage5->m_pShare->m_pgsLogPolicyTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsStartUpInfoTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsTaskInfoTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsDBLogTrace->ShowWindow(SW_HIDE);

	pWnd->m_pPage5->m_pShare->m_pgsNetWorkCard->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsMemory->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsHardware->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsWireless->ShowWindow(SW_HIDE);
	pWnd->m_pPage5->m_pShare->m_pgsClipboard->ShowWindow(SW_HIDE);

	pWnd->m_pPage1->m_pPageShare->m_pgsWebFile->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsHostLog->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsAnalyze->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsFileTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsNetTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsPort->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsProcess->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsService->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsSoftWare->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsAccountSec->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsFileShare->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsUSBTrace->ShowWindow(SW_HIDE);
	//2020.12.28
	pWnd->m_pPage1->m_pPageShare->m_pgsUSNTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsARPTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsDNSTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsLogPolicyTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsPathInfoTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsFileInfoTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsHostBaseInfoTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsStartUpInfoTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsTaskInfoTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsDBLogTrace->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsNetWorkCard->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsMemory->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsHardware->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsWireless->ShowWindow(SW_HIDE);
	pWnd->m_pPage1->m_pPageShare->m_pgsClipboard->ShowWindow(SW_HIDE);

	CPage2::m_ulHostLogNum = 0;
	CPage2::m_ulSysPacthNum = 0;
	CPage2::m_ulFileTraceNum = 0;
	CPage2::m_ulNetTraceNum = 0;
	CPage2::m_ulPortNum = 0;	
	CPage2::m_ulProcessNum = 0;
	CPage2::m_ulServiceNum = 0;
	CPage2::m_ulSoftWareNum = 0;
	CPage2::m_ulFileShareNum = 0;
	CPage2::m_ulUSBTraceNum = 0;
	CPage2::m_ulSecBaseLineNum = 0;

	CPage3::m_ulHostLogNum = 0;	
	CPage3::m_ulSysPacthNum = 0;	
	CPage3::m_ulFileTraceNum = 0;	
	CPage3::m_ulNetTraceNum = 0;	
	CPage3::m_ulPortNum = 0;		
	CPage3::m_ulProcessNum = 0;	
	CPage3::m_ulServiceNum = 0;	
	CPage3::m_ulSoftWareNum = 0;	
	CPage3::m_ulFileShareNum = 0;	
	CPage3::m_ulUSBTraceNum = 0;	
	CPage3::m_ulSecBaseLineNum = 0;

	CPage5::m_ulHostLogNum = 0;	
	CPage5::m_ulSysPacthNum = 0;	
	CPage5::m_ulFileTraceNum = 0;	
	CPage5::m_ulNetTraceNum = 0;	
	CPage5::m_ulPortNum = 0;		
	CPage5::m_ulProcessNum = 0;	
	CPage5::m_ulServiceNum = 0;	
	CPage5::m_ulSoftWareNum = 0;	
	CPage5::m_ulSecBaseLineNum = 0;
	CPage5::m_ulFileShareNum = 0;	
	CPage5::m_ulUSBTraceNum = 0;	
	CPage5::m_ulSecBaseLineNum = 0;

	CWebModule::m_bIsCustomMiddleWare = FALSE;
	CWebModule::m_strCustomJsonPath=_T("");
	// 用完清除容器.
	CWebModule::m_vLogPath.clear();
	std::vector<std::pair<CString,CString>>().swap(CWebModule::m_vLogPath);
	CWebModule::DeleteVector(CWebModule::m_vWebPath_Fast);
	CWebModule::DeleteVector(CWebModule::m_vWebPath_All);
	CWebModule::DeleteVector(CWebModule::m_vWebPath_Custom);

	CTOOLBOX4App::msv_WebInfo.clear();

	CTOOLBOX4App::ms_csFileTrace = _T("0");
	CTOOLBOX4App::ms_csNetTrace = _T("0");
	CTOOLBOX4App::ms_csUSBTrace = _T("0");
	CTOOLBOX4App::ms_csHostLog = _T("0");
	CTOOLBOX4App::ms_csSysLog=_T("0");
	CTOOLBOX4App::ms_csApplicationLog=_T("0");
	CTOOLBOX4App::ms_csPort = _T("0");
	CTOOLBOX4App::ms_csProcess = _T("0");
	CTOOLBOX4App::ms_csService = _T("0");
	CTOOLBOX4App::ms_csSoftware = _T("0");
	CTOOLBOX4App::ms_csFileShare = _T("0");
	CTOOLBOX4App::ms_csKernal = _T("0");
}

void CTOOLBOX4View::OnDraw(CDC* pDC)
{
	CTOOLBOX4Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	if (!pDoc)
		return;

	// TODO: add draw code for native data here
	//CRect rect;
	//GetClientRect(rect);

	switch(PAGE)
	{
	case 1:
		{
			m_pPage2->ShowWindow(SW_HIDE);
			m_pPage3->ShowWindow(SW_HIDE);
			m_pPage4->ShowWindow(SW_HIDE);
			m_pPage5->ShowWindow(SW_HIDE);
			//m_pPage6->ShowWindow(SW_HIDE);
			m_pPage1->ShowWindow(TRUE);
			initialize(this);
			CPage1::m_pPage2 = this->m_pPage2;
			CPage1::m_pPage3 = this->m_pPage3;
			CPage4::m_pPage5 = this->m_pPage5;
			CWebModule::m_pPage2 = this->m_pPage2;
			CWebModule::m_pPage3 = this->m_pPage3;
			CWebModule::m_pPage5 = this->m_pPage5;
			m_pPage5->m_pShare->m_stcContent->ShowWindow(SW_HIDE);
			m_pPage5->m_pShare->m_stcCurent->ShowWindow(SW_HIDE);
			m_pPage2->m_pPageShare->m_stcContent->ShowWindow(SW_HIDE);
			m_pPage2->m_pPageShare->m_stcCurent->ShowWindow(SW_HIDE);
			break;
		}
	case 2:
		{
			m_pPage1->ShowWindow(SW_HIDE);
			m_pPage2->ShowWindow(TRUE);
			//m_pPage2->UpdateData();
			break;
		}
	case 3:
		{
			m_pPage1->ShowWindow(SW_HIDE);
			m_pPage3->ShowWindow(TRUE);
			break;
		}
	case 4:
		{
			m_pPage1->ShowWindow(SW_HIDE);
			m_pPage4->ShowWindow(TRUE);
			break;
		}
	case 5:
		{
			m_pPage4->ShowWindow(SW_HIDE);
			m_pPage5->ShowWindow(TRUE);
			break;
		}
	default:
		break;
	}	
}

//#define WM_MY_MESSAGE (WM_USER+100) 

// CTOOLBOX4View printing

void CTOOLBOX4View::OnFilePrintPreview()
{
#ifndef SHARED_HANDLERS
	AFXPrintPreview(this);
#endif
}

BOOL CTOOLBOX4View::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CTOOLBOX4View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CTOOLBOX4View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

void CTOOLBOX4View::OnContextMenu(CWnd* /* pWnd */, CPoint point)
{
#ifndef SHARED_HANDLERS
	theApp.GetContextMenuManager()->ShowPopupMenu(IDR_POPUP_EDIT, point.x, point.y, this, TRUE);
#endif
}


// CTOOLBOX4View diagnostics

#ifdef _DEBUG
void CTOOLBOX4View::AssertValid() const
{
	CView::AssertValid();
}

void CTOOLBOX4View::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CTOOLBOX4Doc* CTOOLBOX4View::GetDocument() const // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTOOLBOX4Doc)));
	return (CTOOLBOX4Doc*)m_pDocument;
}
#endif //_DEBUG


// CTOOLBOX4View message handlers


BOOL CTOOLBOX4View::OnEraseBkgnd(CDC* pDC)
{
	// TODO: Add your message handler code here and/or call default
	// 解决白屏闪烁问题
	//return CView::OnEraseBkgnd(pDC);
	return true;
}


int CTOOLBOX4View::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CView::OnCreate(lpCreateStruct) == -1)
		return -1;

	// TODO:  Add your specialized creation code here
	m_pPage1 = new CPage1;
	m_pPage1->Create(NULL, TEXT(""), WS_CHILD, CRect(0 ,0, 1000, 870), this, CPAGE1ID);
	m_pPage2 = new CPage2;
	m_pPage2->Create(NULL, TEXT(""), WS_CHILD, CRect(0 ,0, 1000, 870), this, CPAGE2ID);
	m_pPage3 = new CPage3;
	m_pPage3->Create(NULL, TEXT(""), WS_CHILD, CRect(0 ,0, 1000, 870), this, CPAGE3ID);
	m_pPage4 = new CPage4;
	m_pPage4->Create(NULL, TEXT(""), WS_CHILD, CRect(0 ,0, 1000, 618), this, CPAGE4ID);
	m_pPage5 = new CPage5;
	m_pPage5->Create(NULL, TEXT(""), WS_CHILD, CRect(0 ,0, 1000, 870), this, CPAGE5ID);
	//m_pPage6 = new CPage6;
	//m_pPage6->Create(NULL, TEXT(""), WS_CHILD, CRect(0, 0, 1000, 618), this, CPAGE6ID);
	//m_pWaitPage = new CWaitPage;
	//m_pWaitPage->Create(NULL, TEXT(""), WS_CHILD, CRect(0,0,1000, 618), this, WAITPAGEID);

	CPage1::m_pView = this;
	CPage2::m_pView = this;
	CPage3::m_pView = this;
	CPage4::m_pView = this;
	CPage5::m_pView = this;
	//CWaitPage::m_pView = this;
	
	return 0;
}


afx_msg LRESULT CTOOLBOX4View::OnMyPagechange(WPARAM wParam, LPARAM lParam)
{
	Invalidate();
	return 0;
}


void CTOOLBOX4View::OnLButtonDown(UINT nFlags, CPoint point)
{
	// TODO: Add your message handler code here and/or call default
	//GetCursorPos(&m_LBDpoint);
	//AfxMessageBox(_T("test"));
	CView::OnLButtonDown(nFlags, point);
}
